pub struct Stack(/* private fields */);
Implementations§
Source§impl Stack
impl Stack
pub async fn open( local_device: Device, local_secret: PrivateKey, params: StackOpenParams, ) -> Result<StackGuard, BuckyError>
pub fn to_weak(&self) -> Weak<StackImpl>
pub fn id_generator(&self) -> &IncreaseIdGenerator
pub fn keystore(&self) -> &Keystore
pub fn net_manager(&self) -> &NetManager
pub fn device_cache(&self) -> &DeviceCache
pub fn config(&self) -> &StackConfig
pub fn tunnel_manager(&self) -> &TunnelManager
pub fn stream_manager(&self) -> &StreamManager
pub fn datagram_manager(&self) -> &DatagramManager
pub fn proxy_manager(&self) -> &ProxyManager
pub fn local_device_id(&self) -> &DeviceId
pub fn local_const(&self) -> &DeviceDesc
pub fn sn_client(&self) -> &ClientManager
pub fn ndn(&self) -> &NdnStack
pub fn close(&self)
pub fn reset_sn_list(&self, sn_list: Vec<Device>) -> PingClients
pub fn reset_known_sn(&self, sn_list: Vec<Device>)
pub async fn reset_endpoints(&self, endpoints: &Vec<Endpoint>) -> PingClients
Trait Implementations§
Source§impl From<Stack> for StackGuard
impl From<Stack> for StackGuard
Auto Trait Implementations§
impl Freeze for Stack
impl !RefUnwindSafe for Stack
impl Send for Stack
impl Sync for Stack
impl Unpin for Stack
impl !UnwindSafe for Stack
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§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> ⓘ
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 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> ⓘ
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