pub struct Symlink {
pub meta: Metadata,
pub target: Vec<u8>,
}Expand description
A symbolic link, with its target inline in the image.
Fields§
§meta: MetadataThe logical metadata of the symlink inode.
target: Vec<u8>The bytes of the link target.
The target shares one 4096-byte block with the inode header and the xattr area of the inode. The three together must be less than 4096 bytes, so the target is at most 4095 bytes less the header and the area.
A header is 32 bytes for a compact inode and 64 bytes for an extended inode. If the mtime of the inode is not the earliest mtime in the image, the inode is extended. If the uid or the gid is more than 65535, the inode is also extended. If the symlink has a compact inode and no xattrs, the target is at most 4063 bytes.
If the target is longer than its limit, the writer returns
Error::Unsupported.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Symlink
impl Freeze for Symlink
impl Move for Symlink
impl RefUnwindSafe for Symlink
impl Send for Symlinkwhere
RawVecInner: Send,
impl Sync for Symlinkwhere
RawVecInner: Sync,
impl Unpin for Symlink
impl UnsafeUnpin for Symlinkwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<(Vec<u8>, Vec<u8>)>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for Symlinkwhere
RawVecInner: UnwindSafe,
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