pub enum JournalEntry<'a> {
Show 59 variants
InitModuleV1 {
wasm_hash: Box<[u8]>,
},
ClearEtherealV1,
UpdateMemoryRegionV1 {
region: Range<u64>,
compressed_data: Cow<'a, [u8]>,
},
ProcessExitV1 {
exit_code: Option<ExitCode>,
},
SetThreadV1 {
id: u32,
call_stack: Cow<'a, [u8]>,
memory_stack: Cow<'a, [u8]>,
store_data: Cow<'a, [u8]>,
start: ThreadStartType,
layout: WasiMemoryLayout,
is_64bit: bool,
},
CloseThreadV1 {
id: u32,
exit_code: Option<ExitCode>,
},
FileDescriptorSeekV1 {
fd: u32,
offset: i64,
whence: Whence,
},
FileDescriptorWriteV1 {
fd: u32,
offset: u64,
data: Cow<'a, [u8]>,
is_64bit: bool,
},
SetClockTimeV1 {
clock_id: Snapshot0Clockid,
time: u64,
},
CloseFileDescriptorV1 {
fd: u32,
},
OpenFileDescriptorV1 {
fd: u32,
dirfd: u32,
dirflags: u32,
path: Cow<'a, str>,
o_flags: Oflags,
fs_rights_base: Rights,
fs_rights_inheriting: Rights,
fs_flags: Fdflags,
},
RenumberFileDescriptorV1 {
old_fd: u32,
new_fd: u32,
},
DuplicateFileDescriptorV1 {
original_fd: u32,
copied_fd: u32,
},
CreateDirectoryV1 {
fd: u32,
path: Cow<'a, str>,
},
RemoveDirectoryV1 {
fd: u32,
path: Cow<'a, str>,
},
PathSetTimesV1 {
fd: u32,
flags: u32,
path: Cow<'a, str>,
st_atim: u64,
st_mtim: u64,
fst_flags: Fstflags,
},
FileDescriptorSetTimesV1 {
fd: u32,
st_atim: u64,
st_mtim: u64,
fst_flags: Fstflags,
},
FileDescriptorSetFlagsV1 {
fd: u32,
flags: Fdflags,
},
FileDescriptorSetRightsV1 {
fd: u32,
fs_rights_base: Rights,
fs_rights_inheriting: Rights,
},
FileDescriptorSetSizeV1 {
fd: u32,
st_size: u64,
},
FileDescriptorAdviseV1 {
fd: u32,
offset: u64,
len: u64,
advice: Advice,
},
FileDescriptorAllocateV1 {
fd: u32,
offset: u64,
len: u64,
},
CreateHardLinkV1 {
old_fd: u32,
old_path: Cow<'a, str>,
old_flags: u32,
new_fd: u32,
new_path: Cow<'a, str>,
},
CreateSymbolicLinkV1 {
old_path: Cow<'a, str>,
fd: u32,
new_path: Cow<'a, str>,
},
UnlinkFileV1 {
fd: u32,
path: Cow<'a, str>,
},
PathRenameV1 {
old_fd: u32,
old_path: Cow<'a, str>,
new_fd: u32,
new_path: Cow<'a, str>,
},
ChangeDirectoryV1 {
path: Cow<'a, str>,
},
EpollCreateV1 {
fd: u32,
},
EpollCtlV1 {
epfd: u32,
op: EpollCtl,
fd: u32,
event: Option<EpollEventCtl>,
},
TtySetV1 {
tty: Tty,
line_feeds: bool,
},
CreatePipeV1 {
fd1: u32,
fd2: u32,
},
CreateEventV1 {
initial_val: u64,
flags: u16,
fd: u32,
},
PortAddAddrV1 {
cidr: IpCidr,
},
PortDelAddrV1 {
addr: IpAddr,
},
PortAddrClearV1,
PortBridgeV1 {
network: Cow<'a, str>,
token: Cow<'a, str>,
security: StreamSecurity,
},
PortUnbridgeV1,
PortDhcpAcquireV1,
PortGatewaySetV1 {
ip: IpAddr,
},
PortRouteAddV1 {
cidr: IpCidr,
via_router: IpAddr,
preferred_until: Option<Duration>,
expires_at: Option<Duration>,
},
PortRouteClearV1,
PortRouteDelV1 {
ip: IpAddr,
},
SocketOpenV1 {
af: Addressfamily,
ty: Socktype,
pt: SockProto,
fd: u32,
},
SocketListenV1 {
fd: u32,
backlog: u32,
},
SocketBindV1 {
fd: u32,
addr: SocketAddr,
},
SocketConnectedV1 {
fd: u32,
local_addr: SocketAddr,
peer_addr: SocketAddr,
},
SocketAcceptedV1 {
listen_fd: u32,
fd: u32,
local_addr: SocketAddr,
peer_addr: SocketAddr,
fd_flags: Fdflags,
non_blocking: bool,
},
SocketJoinIpv4MulticastV1 {
fd: u32,
multiaddr: Ipv4Addr,
iface: Ipv4Addr,
},
SocketJoinIpv6MulticastV1 {
fd: u32,
multi_addr: Ipv6Addr,
iface: u32,
},
SocketLeaveIpv4MulticastV1 {
fd: u32,
multi_addr: Ipv4Addr,
iface: Ipv4Addr,
},
SocketLeaveIpv6MulticastV1 {
fd: u32,
multi_addr: Ipv6Addr,
iface: u32,
},
SocketSendFileV1 {
socket_fd: u32,
file_fd: u32,
offset: u64,
count: u64,
},
SocketSendToV1 {
fd: u32,
data: Cow<'a, [u8]>,
flags: u16,
addr: SocketAddr,
is_64bit: bool,
},
SocketSendV1 {
fd: u32,
data: Cow<'a, [u8]>,
flags: u16,
is_64bit: bool,
},
SocketSetOptFlagV1 {
fd: u32,
opt: Sockoption,
flag: bool,
},
SocketSetOptSizeV1 {
fd: u32,
opt: Sockoption,
size: u64,
},
SocketSetOptTimeV1 {
fd: u32,
ty: SocketOptTimeType,
time: Option<Duration>,
},
SocketShutdownV1 {
fd: u32,
how: SocketShutdownHow,
},
SnapshotV1 {
when: SystemTime,
trigger: SnapshotTrigger,
},
}
Expand description
Represents a log entry in a snapshot log stream that represents the total state of a WASM process at a point in time.
Variants§
InitModuleV1
ClearEtherealV1
UpdateMemoryRegionV1
ProcessExitV1
SetThreadV1
CloseThreadV1
FileDescriptorSeekV1
FileDescriptorWriteV1
SetClockTimeV1
CloseFileDescriptorV1
OpenFileDescriptorV1
Fields
RenumberFileDescriptorV1
DuplicateFileDescriptorV1
CreateDirectoryV1
RemoveDirectoryV1
PathSetTimesV1
FileDescriptorSetTimesV1
FileDescriptorSetFlagsV1
FileDescriptorSetRightsV1
FileDescriptorSetSizeV1
FileDescriptorAdviseV1
FileDescriptorAllocateV1
CreateHardLinkV1
CreateSymbolicLinkV1
UnlinkFileV1
PathRenameV1
ChangeDirectoryV1
EpollCreateV1
EpollCtlV1
TtySetV1
CreatePipeV1
CreateEventV1
PortAddAddrV1
PortDelAddrV1
PortAddrClearV1
PortBridgeV1
PortUnbridgeV1
PortDhcpAcquireV1
PortGatewaySetV1
PortRouteAddV1
Fields
PortRouteClearV1
PortRouteDelV1
SocketOpenV1
SocketListenV1
SocketBindV1
SocketConnectedV1
SocketAcceptedV1
SocketJoinIpv4MulticastV1
SocketJoinIpv6MulticastV1
SocketLeaveIpv4MulticastV1
SocketLeaveIpv6MulticastV1
SocketSendFileV1
SocketSendToV1
SocketSendV1
SocketSetOptFlagV1
SocketSetOptSizeV1
SocketSetOptTimeV1
SocketShutdownV1
SnapshotV1
Represents the marker for the end of a snapshot
Implementations§
Source§impl<'a> JournalEntry<'a>
impl<'a> JournalEntry<'a>
pub fn archive_record_type(&self) -> JournalEntryRecordType
pub fn serialize_archive<T>(self, serializer: &mut T) -> Result<usize, Error>
Source§impl<'a> JournalEntry<'a>
impl<'a> JournalEntry<'a>
pub fn into_owned(self) -> JournalEntry<'static>
pub fn estimate_size(&self) -> usize
Trait Implementations§
Source§impl<'a> Clone for JournalEntry<'a>
impl<'a> Clone for JournalEntry<'a>
Source§fn clone(&self) -> JournalEntry<'a>
fn clone(&self) -> JournalEntry<'a>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for JournalEntry<'a>
impl<'a> Debug for JournalEntry<'a>
Source§impl<'de, 'a> Deserialize<'de> for JournalEntry<'a>
impl<'de, 'a> Deserialize<'de> for JournalEntry<'a>
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<JournalEntry<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<JournalEntry<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> Display for JournalEntry<'a>
impl<'a> Display for JournalEntry<'a>
Source§impl<'a> PartialEq for JournalEntry<'a>
impl<'a> PartialEq for JournalEntry<'a>
Source§impl<'a> Serialize for JournalEntry<'a>
impl<'a> Serialize for JournalEntry<'a>
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl<'a> TryFrom<ArchivedJournalEntry<'a>> for JournalEntry<'a>
impl<'a> TryFrom<ArchivedJournalEntry<'a>> for JournalEntry<'a>
impl<'a> StructuralPartialEq for JournalEntry<'a>
Auto Trait Implementations§
impl<'a> Freeze for JournalEntry<'a>
impl<'a> RefUnwindSafe for JournalEntry<'a>
impl<'a> Send for JournalEntry<'a>
impl<'a> Sync for JournalEntry<'a>
impl<'a> Unpin for JournalEntry<'a>
impl<'a> UnwindSafe for JournalEntry<'a>
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Upcastable for T
impl<T> Upcastable for T
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_box(self: Box<T>) -> Box<dyn Any>
Source§impl<T> Upcastable for T
impl<T> Upcastable for T
Source§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
Source§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref