pub struct DebugRegistration {
pub protocol: Option<OneOrMany<Name>>,
pub from: OfferFromRef,
pub as: Option<Name>,
}
Fields§
§protocol: Option<OneOrMany<Name>>
The name(s) of the protocol(s) to make available.
from: OfferFromRef
The source of the capability(s), one of:
parent
: The component’s parent.self
: This component.#<child-name>
: A reference to a child component instance.
as: Option<Name>
If specified, the name that the capability in protocol
should be made
available as to clients. Disallowed if protocol
is an array.
Trait Implementations§
Source§impl CapabilityClause for DebugRegistration
impl CapabilityClause for DebugRegistration
fn service(&self) -> Option<OneOrMany<&Name>>
fn protocol(&self) -> Option<OneOrMany<&Name>>
fn directory(&self) -> Option<OneOrMany<&Name>>
fn storage(&self) -> Option<OneOrMany<&Name>>
fn runner(&self) -> Option<OneOrMany<&Name>>
fn resolver(&self) -> Option<OneOrMany<&Name>>
fn event_stream(&self) -> Option<OneOrMany<&Name>>
fn dictionary(&self) -> Option<OneOrMany<&Name>>
fn config(&self) -> Option<OneOrMany<&Name>>
fn set_service(&mut self, _o: Option<OneOrMany<Name>>)
fn set_protocol(&mut self, o: Option<OneOrMany<Name>>)
fn set_directory(&mut self, _o: Option<OneOrMany<Name>>)
fn set_storage(&mut self, _o: Option<OneOrMany<Name>>)
fn set_runner(&mut self, _o: Option<OneOrMany<Name>>)
fn set_resolver(&mut self, _o: Option<OneOrMany<Name>>)
fn set_event_stream(&mut self, _o: Option<OneOrMany<Name>>)
fn set_dictionary(&mut self, _o: Option<OneOrMany<Name>>)
fn set_config(&mut self, _o: Option<OneOrMany<Name>>)
fn availability(&self) -> Option<Availability>
fn set_availability(&mut self, _a: Option<Availability>)
fn decl_type(&self) -> &'static str
fn supported(&self) -> &[&'static str]
Source§fn are_many_names_allowed(&self) -> bool
fn are_many_names_allowed(&self) -> bool
Returns true if this capability type allows the ::Many variant of OneOrMany.
Source§fn capability_type(&self) -> Result<&'static str, Error>
fn capability_type(&self) -> Result<&'static str, Error>
Returns the name of the capability for display purposes.
If
service()
returns Some
, the capability name must be “service”, etc. Read moreSource§fn names(&self) -> Vec<&Name>
fn names(&self) -> Vec<&Name>
Returns the names of the capabilities in this clause.
If
protocol()
returns Some(OneOrMany::Many(vec!["a", "b"]))
, this returns![“a”, “b”].fn set_names(&mut self, names: Vec<Name>)
Source§impl Clone for DebugRegistration
impl Clone for DebugRegistration
Source§fn clone(&self) -> DebugRegistration
fn clone(&self) -> DebugRegistration
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DebugRegistration
impl Debug for DebugRegistration
Source§impl<'de> Deserialize<'de> for DebugRegistration
impl<'de> Deserialize<'de> for DebugRegistration
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromClause for DebugRegistration
impl FromClause for DebugRegistration
Source§impl MarkdownReferenceDocGenerator for DebugRegistration
impl MarkdownReferenceDocGenerator for DebugRegistration
Source§fn get_reference_doc_markdown() -> String
fn get_reference_doc_markdown() -> String
Returns a Markdown representation of the reference docs for the
struct that is derived from
ReferenceDoc
. The returned Markdown
indents any #
Markdown headers in individual field doc comments
to ensure a well structured final Markdown document.§fn get_reference_doc_markdown_with_options(
indent_headers_by: usize,
indent_with_spaces: usize,
) -> String
fn get_reference_doc_markdown_with_options( indent_headers_by: usize, indent_with_spaces: usize, ) -> String
This method is called internally by the reference doc generator when
recursing to generate documentation for field types.
Source§impl PartialEq for DebugRegistration
impl PartialEq for DebugRegistration
Source§impl PathClause for DebugRegistration
impl PathClause for DebugRegistration
Source§impl Serialize for DebugRegistration
impl Serialize for DebugRegistration
impl StructuralPartialEq for DebugRegistration
Auto Trait Implementations§
impl Freeze for DebugRegistration
impl RefUnwindSafe for DebugRegistration
impl Send for DebugRegistration
impl Sync for DebugRegistration
impl Unpin for DebugRegistration
impl UnwindSafe for DebugRegistration
Blanket Implementations§
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)