pub struct NoticeQueue { /* private fields */ }Expand description
The notices a session queues for its client, in the order they arrive. A notice below the session’s client_min_messages is dropped as it arrives, as PostgreSQL decides whether a report reaches the client when it raises it (errstart), so a level that a function sets for its own body silences only the notices raised there.
Implementations§
Source§impl NoticeQueue
impl NoticeQueue
Sourcepub fn new(client_level: Arc<AtomicU8>) -> Self
pub fn new(client_level: Arc<AtomicU8>) -> Self
A queue that reads the session’s client_min_messages from client_level.
Sourcepub fn push(&self, notice: SQLNotice)
pub fn push(&self, notice: SQLNotice)
Queue notice after the notices queued before it, unless its level does not reach the client.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for NoticeQueue
impl !RefUnwindSafe for NoticeQueue
impl Send for NoticeQueue
impl Sync for NoticeQueue
impl Unpin for NoticeQueue
impl UnsafeUnpin for NoticeQueue
impl UnwindSafe for NoticeQueue
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> ErasedDestructor for Twhere
T: 'static,
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