Struct ActionDirectorySnapshot
pub struct ActionDirectorySnapshot {
pub effective_invocations: Option<[u8; 32]>,
pub roots: Vec<ActionDirectoryRow>,
pub nodes: HashMap<String, DirectoryNode>,
pub actions: HashMap<ActionAddress, ActionDirectoryRow>,
pub order: Vec<ActionAddress>,
/* private fields */
}Expand description
The directory of one publication: its top level, each resource’s level, and each action’s row by address, in the tree order the publication declares them.
Fields§
§effective_invocations: Option<[u8; 32]>Digest of the invocations the published actions encode, when every
one of them is covered; see effective.
roots: Vec<ActionDirectoryRow>§nodes: HashMap<String, DirectoryNode>§actions: HashMap<ActionAddress, ActionDirectoryRow>§order: Vec<ActionAddress>Every action’s address, in tree order: what a search walks.
Implementations§
§impl ActionDirectorySnapshot
impl ActionDirectorySnapshot
pub fn retained_bytes(&self) -> usize
pub fn retained_bytes(&self) -> usize
What the snapshot is estimated to hold, estimated the first time it is asked.
pub fn retention_estimated(&self) -> bool
pub fn retention_estimated(&self) -> bool
Whether what the snapshot holds has been estimated yet.
pub fn build(
resources: &[ResourceSpec],
descriptors: &[ActionDescriptor],
visibility: impl Fn(&ResourceSpec) -> Option<ActionAddress>,
) -> ActionDirectorySnapshot
pub fn build( resources: &[ResourceSpec], descriptors: &[ActionDescriptor], visibility: impl Fn(&ResourceSpec) -> Option<ActionAddress>, ) -> ActionDirectorySnapshot
The directory of resources, whose actions descriptors describe
(the publication’s tilo_actions::door::survey). A resource is
disclosed through the action visibility names for it, or else its
first view, preferring one that reads the document; one disclosed by
neither is flattened into its actions and children.
Trait Implementations§
§impl Debug for ActionDirectorySnapshot
impl Debug for ActionDirectorySnapshot
§impl Default for ActionDirectorySnapshot
impl Default for ActionDirectorySnapshot
§fn default() -> ActionDirectorySnapshot
fn default() -> ActionDirectorySnapshot
§impl PartialEq for ActionDirectorySnapshot
impl PartialEq for ActionDirectorySnapshot
§fn eq(&self, other: &ActionDirectorySnapshot) -> bool
fn eq(&self, other: &ActionDirectorySnapshot) -> bool
self and other values to be equal, and is used by ==.impl Eq for ActionDirectorySnapshot
Auto Trait Implementations§
impl !Freeze for ActionDirectorySnapshot
impl !RefUnwindSafe for ActionDirectorySnapshot
impl Send for ActionDirectorySnapshot
impl !Sync for ActionDirectorySnapshot
impl Unpin for ActionDirectorySnapshot
impl UnsafeUnpin for ActionDirectorySnapshot
impl UnwindSafe for ActionDirectorySnapshot
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more