pub struct SemiSyncAckPacket<'a> { /* private fields */ }Expand description
Each Semi Sync Binlog Event with the SEMI_SYNC_ACK_REQ flag set the slave has to acknowledge
with Semi-Sync ACK packet.
Implementations§
Source§impl<'a> SemiSyncAckPacket<'a>
impl<'a> SemiSyncAckPacket<'a>
pub fn new(position: u64, filename: impl Into<Cow<'a, [u8]>>) -> Self
Sourcepub fn with_position(self, position: u64) -> Self
pub fn with_position(self, position: u64) -> Self
Sets the position field value.
Sourcepub fn with_filename(self, filename: impl Into<Cow<'a, [u8]>>) -> Self
pub fn with_filename(self, filename: impl Into<Cow<'a, [u8]>>) -> Self
Sets the filename field value.
Sourcepub fn filename_raw(&self) -> &[u8] ⓘ
pub fn filename_raw(&self) -> &[u8] ⓘ
Returns the raw filename field value.
Trait Implementations§
Source§impl<'de> MyDeserialize<'de> for SemiSyncAckPacket<'de>
impl<'de> MyDeserialize<'de> for SemiSyncAckPacket<'de>
Source§impl MySerialize for SemiSyncAckPacket<'_>
impl MySerialize for SemiSyncAckPacket<'_>
Auto Trait Implementations§
impl<'a> Freeze for SemiSyncAckPacket<'a>
impl<'a> RefUnwindSafe for SemiSyncAckPacket<'a>
impl<'a> Send for SemiSyncAckPacket<'a>
impl<'a> Sync for SemiSyncAckPacket<'a>
impl<'a> Unpin for SemiSyncAckPacket<'a>
impl<'a> UnwindSafe for SemiSyncAckPacket<'a>
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