pub struct Adapter { /* private fields */ }Expand description
Adapter state that can be managed by a Tauri application or exercised by a host test.
Implementations§
Source§impl Adapter
impl Adapter
pub fn new( backend: Arc<dyn HostLoggingBackend>, policy: AdapterPolicy, ) -> Result<Self, Failure>
pub fn try_log(&self, window: &str, value: Value) -> WireEnvelope<AdmissionDto>
pub async fn query( &self, window: &str, value: Value, ) -> WireEnvelope<LogSnapshotDto>
pub fn health(&self, window: &str, value: Value) -> WireEnvelope<LogHealthDto>
pub async fn flush( &self, window: &str, value: Value, ) -> WireEnvelope<CompletionDto>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Adapter
impl !UnwindSafe for Adapter
impl Freeze for Adapter
impl Send for Adapter
impl Sync for Adapter
impl Unpin for Adapter
impl UnsafeUnpin for Adapter
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