IsInvalid checks if mode is invalid.
()
| 838 | |
| 839 | // IsInvalid checks if mode is invalid. |
| 840 | func (m AccessMode) IsInvalid() bool { |
| 841 | return m == ModeInvalid |
| 842 | } |
| 843 | |
| 844 | // IsDefined checks if the mode is defined: not invalid and not unset. |
| 845 | // ModeNone is considered to be defined. |