pub struct TurnCredentials(/* private fields */);Expand description
Every live turn credential, by its digest. Cloning it is another handle onto the same registry.
Implementations§
Source§impl TurnCredentials
impl TurnCredentials
Sourcepub fn new(server: Option<SocketAddr>) -> Self
pub fn new(server: Option<SocketAddr>) -> Self
An empty registry whose turns’ runs are told the server is at server.
Sourcepub fn admit(&self, presented: &[u8]) -> Option<TurnBinding>
pub fn admit(&self, presented: &[u8]) -> Option<TurnBinding>
Who a presented credential authenticates as, when it is a live turn’s.
Trait Implementations§
Source§impl Clone for TurnCredentials
impl Clone for TurnCredentials
Source§impl Debug for TurnCredentials
impl Debug for TurnCredentials
Source§impl TurnAuthority for TurnCredentials
impl TurnAuthority for TurnCredentials
Source§fn open(&self, print_id: PrintId) -> OpenedTurn
fn open(&self, print_id: PrintId) -> OpenedTurn
The issuer for one turn about one print.
Auto Trait Implementations§
impl Forget for TurnCredentials
impl Freeze for TurnCredentials
impl Move for TurnCredentials
impl RefUnwindSafe for TurnCredentials
impl Send for TurnCredentials
impl Sync for TurnCredentials
impl Unpin for TurnCredentials
impl UnsafeUnpin for TurnCredentials
impl UnwindSafe for TurnCredentials
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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> ⓘ
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