pub struct UpstreamAppDestinations<C>where
C: UpstreamAppDestinationTable,{ /* private fields */ }Implementations§
Source§impl<C> UpstreamAppDestinations<C>where
C: UpstreamAppDestinationTable,
impl<C> UpstreamAppDestinations<C>where
C: UpstreamAppDestinationTable,
pub fn register_plain( &mut self, app_name: &str, aspects: &[&str], ) -> Result<DestinationHash, RegisterDestinationError>
pub fn register_single( &mut self, identity_hash: &IdentityHash, app_name: &str, aspects: &[&str], app_data: &[u8], proof_strategy: ProofStrategy, link_request_policy: LinkRequestPolicy, ratchet_policy: RatchetPolicy, ) -> Result<DestinationHash, RegisterDestinationError>
Sourcepub fn default_resource_strategy(
&self,
destination: &DestinationHash,
) -> ResourceStrategy
pub fn default_resource_strategy( &self, destination: &DestinationHash, ) -> ResourceStrategy
The destination’s standing answer to inbound resource offers, stamped onto its links at activation. Anything but a registered Single refuses.
pub fn set_default_resource_strategy( &mut self, destination: &DestinationHash, strategy: ResourceStrategy, ) -> bool
pub fn set_maximum_request_bytes( &mut self, destination: &DestinationHash, maximum: ByteLimit, ) -> bool
pub fn register_group( &mut self, identity_hash: &IdentityHash, app_name: &str, aspects: &[&str], ) -> Result<DestinationHash, RegisterDestinationError>
pub fn app_data_for(&self, destination: &DestinationHash) -> Option<&[u8]>
pub fn registration_for( &self, destination: &DestinationHash, ) -> Option<(UpstreamAppDestination, &[u8])>
pub fn lookup( &self, destination: &DestinationHash, destination_type: DestinationType, ) -> Option<UpstreamAppDestination>
pub fn lookup_single( &self, destination: &DestinationHash, ) -> Option<RegisteredSingle>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> impl Iterator<Item = UpstreamAppDestination>
Trait Implementations§
Source§impl<C> Debug for UpstreamAppDestinations<C>where
C: Debug + UpstreamAppDestinationTable,
impl<C> Debug for UpstreamAppDestinations<C>where
C: Debug + UpstreamAppDestinationTable,
Source§impl<C> Default for UpstreamAppDestinations<C>where
C: Default + UpstreamAppDestinationTable,
impl<C> Default for UpstreamAppDestinations<C>where
C: Default + UpstreamAppDestinationTable,
Source§fn default() -> UpstreamAppDestinations<C>
fn default() -> UpstreamAppDestinations<C>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<C> Freeze for UpstreamAppDestinations<C>where
C: Freeze,
impl<C> RefUnwindSafe for UpstreamAppDestinations<C>where
C: RefUnwindSafe,
impl<C> Send for UpstreamAppDestinations<C>where
C: Send,
impl<C> Sync for UpstreamAppDestinations<C>where
C: Sync,
impl<C> Unpin for UpstreamAppDestinations<C>where
C: Unpin,
impl<C> UnsafeUnpin for UpstreamAppDestinations<C>where
C: UnsafeUnpin,
impl<C> UnwindSafe for UpstreamAppDestinations<C>where
C: UnwindSafe,
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