pub struct Open {
pub mode: OpenMode,
pub format: Format,
pub page: Option<Page>,
pub assigned: Option<String>,
/* private fields */
}Fields§
§mode: OpenMode§format: Format§page: Option<Page>The logical page of a LINAGE file opened OUTPUT or EXTEND.
assigned: Option<String>The DD a file whose ASSIGN names a data item was opened on.
Implementations§
Source§impl Open
impl Open
pub fn keyed(&mut self) -> Option<&mut Keyed>
pub fn is_keyed(&self) -> bool
Sourcepub fn mark_open(&mut self, data_set: &Path) -> Result<(), Error>
pub fn mark_open(&mut self, data_set: &Path) -> Result<(), Error>
Marks the VSAM data set this file holds open for output until CLOSE (open_mark).
pub fn read(&mut self, fixed_len: usize) -> Result<Record, Error>
pub fn write(&mut self, bytes: &[u8]) -> Result<(), Error>
Sourcepub fn print(
&mut self,
before: Option<Move>,
line: &str,
after: Option<Move>,
) -> Result<(), Error>
pub fn print( &mut self, before: Option<Move>, line: &str, after: Option<Move>, ) -> Result<(), Error>
Writes a line to a text DD where a printer would put it: after before, over a line not
yet ended when nothing moved the paper (after a carriage return, unless one of the two is
blank), then after. The first line of the DD takes one line of before as its own start,
as a printer at the top of a form prints a single-spaced first line on line 1.
pub fn close(self) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for Open
impl RefUnwindSafe for Open
impl Send for Open
impl Sync for Open
impl Unpin for Open
impl UnsafeUnpin for Open
impl UnwindSafe for Open
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