Skip to main content

MessageHandler

Struct MessageHandler 

Source
pub struct MessageHandler { /* private fields */ }
Expand description

Shared message-handler handle.

Clone law: cloning duplicates Arc handles to the same transport and DHT state. It never forks protocol state or transfers ownership.

Implementations§

Source§

impl MessageHandler

Source

pub fn new(transport: Arc<SwarmTransport>) -> MessageHandler

Create a new MessageHandler instance.

Trait Implementations§

Source§

impl Clone for MessageHandler

Source§

fn clone(&self) -> MessageHandler

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl HandleMsg<AnnounceRelayHolder> for MessageHandler

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, msg: &'life3 AnnounceRelayHolder, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Take the previous holders the authenticated origin passed, iff it is this node’s predecessor. A record this node does not take is ignored: the predecessor passes it again on its next repair pass.

Source§

impl HandleMsg<ConnectNodeReport> for MessageHandler

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, msg: &'life3 ConnectNodeReport, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Message handler.
Source§

impl HandleMsg<ConnectNodeSend> for MessageHandler

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, msg: &'life3 ConnectNodeSend, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Message handler.
Source§

impl HandleMsg<CustomMessage> for MessageHandler

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, _: &'life3 CustomMessage, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Message handler.
Source§

impl HandleMsg<DeclareRelayCustody> for MessageHandler

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, msg: &'life3 DeclareRelayCustody, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Record the declaration the authenticated origin made after its handshake (Law (Age gate)), as its handshake’s declaration is recorded.

Source§

impl HandleMsg<E2eHandshakeRequest> for MessageHandler

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, msg: &'life3 E2eHandshakeRequest, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Message handler.
Source§

impl HandleMsg<E2eHandshakeResponse> for MessageHandler

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, msg: &'life3 E2eHandshakeResponse, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Message handler.
Source§

impl HandleMsg<E2eStreamFrame> for MessageHandler

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, msg: &'life3 E2eStreamFrame, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Message handler.
Source§

impl HandleMsg<EntryStoreReport> for MessageHandler

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, msg: &'life3 EntryStoreReport, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Pass a store report on toward its origin, or take it here, where it advances the receipt of the operation it names (swarm::transport::store_reports). A report of an operation this node does not await changes nothing.

Source§

impl HandleMsg<FetchRelayInbox> for MessageHandler

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, _: &'life3 FetchRelayInbox, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Report the live inbox of the authenticated origin to it, iff this node is a member of its inbox key under its own view (#777); otherwise the fetch is refused with RelayCarrierNotHeldHere.

Source§

impl HandleMsg<FindRelayHolder> for MessageHandler

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, msg: &'life3 FindRelayHolder, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Answer with the holder of msg.key as this node’s view names it, when this node owns the key (Law (Owner places)); otherwise route the query on toward the owner, as a lookup is.

Source§

impl HandleMsg<FindSuccessorReport> for MessageHandler

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, msg: &'life3 FindSuccessorReport, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Message handler.
Source§

impl HandleMsg<FindSuccessorSend> for MessageHandler

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, msg: &'life3 FindSuccessorSend, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Message handler.
Source§

impl HandleMsg<FoundEntry> for MessageHandler

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, msg: &'life3 FoundEntry, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Message handler.
Source§

impl HandleMsg<Leave> for MessageHandler

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, msg: &'life3 Leave, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Message handler.
Source§

impl HandleMsg<NotifyPredecessorSend> for MessageHandler

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, msg: &'life3 NotifyPredecessorSend, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Message handler.
Source§

impl HandleMsg<PlacedEntryOperation> for MessageHandler

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, msg: &'life3 PlacedEntryOperation, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Message handler.
Source§

impl HandleMsg<ProbeAcknowledgement> for MessageHandler

Provider verifies the acknowledgement before admitting bounded evidence.

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, msg: &'life3 ProbeAcknowledgement, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Message handler.
Source§

impl HandleMsg<ProbeOffer> for MessageHandler

Beneficiary verifies an offered transcript and returns its role attestation once.

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, msg: &'life3 ProbeOffer, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Message handler.
Source§

impl HandleMsg<ProbeRequest> for MessageHandler

Probe request is a direct authenticated overlay liveness probe.

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, msg: &'life3 ProbeRequest, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Message handler.
Source§

impl HandleMsg<QueryForTopoInfoReport> for MessageHandler

Admit only bounded topology candidates from a correlated topology report.

Sync-successor reports connect advertised successors before joining them to the local DHT. Stabilization reports use the same request-id discipline, then commit the reported topology only after the reporter and at least one reported peer are still routable under the transport lifecycle boundary.

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, msg: &'life3 QueryForTopoInfoReport, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Dispatch one report to the exact synchronization flow authorized by its token.

Successor-sync claims are single-use and revalidated before every bounded candidate. Each connected candidate is joined before the cursor advances. The claim is released when it drops, so a connection or join failure releases the token by leaving the handler. A stale plan returns without emitting additional effects. Stabilization reports are delegated to handle_stabilization_report.

§Errors

Returns an error when DHT claim state cannot be accessed, or when an authorized candidate cannot be connected or joined. The matching token is cancelled before propagating an effect failure.

Source§

impl HandleMsg<QueryForTopoInfoSend> for MessageHandler

QueryForTopoInfoSend is direct message

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, msg: &'life3 QueryForTopoInfoSend, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Message handler.
Source§

impl HandleMsg<RelayCarrierDigests> for MessageHandler

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, msg: &'life3 RelayCarrierDigests, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Ask the authenticated origin, a chain neighbour, for the offered carriers this node lacks or holds otherwise, of the keys whose chain makes the origin its neighbour.

Source§

impl HandleMsg<RelayCarrierHeld> for MessageHandler

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, msg: &'life3 RelayCarrierHeld, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Pass a next member’s acknowledgement of a hold this node forwards up the chain, to the node the hold came from (Law (Chain replication)); otherwise stop keeping a hold this node wrote, iff the node it was last sent to acknowledges it. An acknowledgement from any other node, or of a hold this node neither forwards nor keeps, changes nothing.

Source§

impl HandleMsg<RelayCarrierRefused> for MessageHandler

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, msg: &'life3 RelayCarrierRefused, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Send the bytes of a hold this node forwarded by its digest alone to the next member that asks for them (Law (Chain replication)). Otherwise send again at once a kept hold the node it was last sent to refuses, iff this node’s view now names another holder; the next repair pass sends it again besides. A refusal of a hold this node neither forwards nor keeps, or from another node, changes nothing.

Source§

impl HandleMsg<RelayCarriersWanted> for MessageHandler

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, msg: &'life3 RelayCarriersWanted, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Copy to the authenticated origin, a chain neighbour, the carriers it asked for after this node’s offer, as additive repair: the origin admits each as a copy from its neighbour, and no copy removes anything here.

Source§

impl HandleMsg<RelayHolderFound> for MessageHandler

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, msg: &'life3 RelayHolderFound, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Take the answer to this node’s outstanding query for (msg.key, msg.request_id) (Law (Asked)). An answer about its next holder (#777) is cached, the holds waiting for it resume, and an owner that names none is asked past by its horizon. Otherwise record the holder the owner named as a keeper’s hint, and ask for a repair pass, which offers the carrier there, only when that hint changed. An answer nobody asked for, a second answer, a mismatched token, or an origin inconsistent with msg.key costs no pass and moves nothing.

Source§

impl HandleMsg<RelayInboxReport> for MessageHandler

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, msg: &'life3 RelayInboxReport, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Drain the inbox the authenticated origin reported, iff it is a member of this node’s inbox key under this node’s own view (see SwarmInboxDelivery::deliver_fetched).

Source§

impl HandleMsg<ReplicateRelayHold> for MessageHandler

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, msg: &'life3 ReplicateRelayHold, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Take a hold the authenticated origin forwarded as this node’s previous member of its key (Law (Chain replication)), forward it on unless this node ends the chain, and acknowledge it to the origin once the rest of the chain did. A forward of the digest alone names a hold this node forwards already; for any other, the origin is asked for the bytes (RelayCarrierRefused). The hold is judged as a relocated carrier is, as of its hold instant, since the holder judged its freshness when it took it.

Source§

impl HandleMsg<SearchEntry> for MessageHandler

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, msg: &'life3 SearchEntry, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Look up the one placement msg interrogates: a value stored here is answered at once, otherwise the search is forwarded toward the placement’s owner.

Source§

impl HandleMsg<SyncEntriesWithSuccessor> for MessageHandler

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, msg: &'life3 SyncEntriesWithSuccessor, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Message handler.
Source§

impl HandleMsg<SyncEntriesWithSuccessorReport> for MessageHandler

Source§

fn handle<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, context: &'life1 HandlerContext<'life2>, msg: &'life3 SyncEntriesWithSuccessorReport, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, MessageHandler: 'async_trait,

Message handler.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> ArchivePointee for T

Source§

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.
Source§

fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata

Converts some archived metadata to the pointer metadata for itself.
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> LayoutRaw for T

Source§

fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>

Returns the layout of the type.
Source§

impl<T> MaybeSend for T
where T: Send + ?Sized,

Source§

impl<T> MaybeSendSync for T
where T: Send + Sync + ?Sized,

Source§

impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
where T: SharedNiching<N1, N2>, N1: Niching<T>, N2: Niching<T>,

Source§

unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool

Returns whether the given value has been niched. Read more
Source§

fn resolve_niched(out: Place<NichedOption<T, N1>>)

Writes data to out indicating that a T is niched.
Source§

impl<T> Pointee for T

Source§

type Metadata = ()

The metadata type for pointers and references to this type.
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more