pub struct DebugLogBridge<K: DebugLog> { /* private fields */ }
Implementations§
Source§impl<K: DebugLog> DebugLogBridge<K>
impl<K: DebugLog> DebugLogBridge<K>
pub fn create(debug_log: K) -> Self
pub fn existing_logs(&mut self) -> Result<Vec<StoredMessage>, Status>
pub fn listen(self) -> impl Stream<Item = Result<StoredMessage, Status>>
Auto Trait Implementations§
impl<K> Freeze for DebugLogBridge<K>where
K: Freeze,
impl<K> RefUnwindSafe for DebugLogBridge<K>where
K: RefUnwindSafe,
impl<K> Send for DebugLogBridge<K>where
K: Send,
impl<K> Sync for DebugLogBridge<K>where
K: Sync,
impl<K> Unpin for DebugLogBridge<K>where
K: Unpin,
impl<K> UnwindSafe for DebugLogBridge<K>where
K: 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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> IntoAny for T
impl<T> IntoAny for T
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