pub struct BufferedPublisher { /* private fields */ }
Expand description
A buffered publisher will buffer log messages until the IOBuffer is received. If this is registered as the global logger, then messages will be logged at the default level until an updated level is received from Archivist.
Implementations§
Source§impl BufferedPublisher
impl BufferedPublisher
Sourcepub fn new(opts: PublisherOptions<'_>) -> Result<Arc<Self>, PublishError>
pub fn new(opts: PublisherOptions<'_>) -> Result<Arc<Self>, PublishError>
Returns a publisher that will buffer messages until the IOBuffer is received. An async executor must be established.
Trait Implementations§
Source§impl Log for BufferedPublisher
impl Log for BufferedPublisher
Auto Trait Implementations§
impl !Freeze for BufferedPublisher
impl RefUnwindSafe for BufferedPublisher
impl Send for BufferedPublisher
impl Sync for BufferedPublisher
impl Unpin for BufferedPublisher
impl UnwindSafe for BufferedPublisher
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